import request from '@/utils/request'
import { base_url } from '@/api/config'

export function queryQuotaPage(data) {
  return request({
    url: base_url + '/board/quota',
    method: 'post',
    data
  })
}

export function getDeviceByQuota(data) {
  return request({
    url: base_url + '/board/devices',
    method: 'post',
    data
  })
}

export function addBoard(data) {
  return request({
    url: base_url + '/board/add',
    method: 'post',
    data
  })
}

export function updateBoard(data) {
  return request({
    url: base_url + '/board/add',
    method: 'post',
    data
  })
}

export function delBoard(data) {
  return request({
    url: base_url + '/board/delete',
    method: 'post',
    data
  })
}

export function previewBoard(data) {
  return request({
    url: base_url + '/board/preview',
    method: 'post',
    data
  })
}

export function getBoardList() {
  return request({
    url: base_url + '/board/list',
    method: 'get'
  })
}
export function getQuotaData(data) {
  return request({
    url: base_url + '/board/quota-data',
    method: 'post',
    data
  })
}
